/**
 * 
 */
package com.asdf.application.commands.dialogHandlers;

import com.asdf.external.INetserviceSimulator;
import com.asdf.ui.Dialog;

/**
 * @author Artem Barger
 *	Handler which is capable to close dialog window whenever and release all
 *	graphical resources.
 */
public class DialogHandlerCancel implements IDialogHandler
{

	private Dialog dlg;
	
	/**
	 * @param dlg reference to Dialog object, handler will work after it with given
	 * 	reference.
	 */
	public DialogHandlerCancel( Dialog dlg)
	{
		this.dlg = dlg;
	}
	/* (non-Javadoc)
	 * @see com.asdf.application.commands.dialogHandlers.IDialogHandler#handle(com.asdf.ui.Dialog, com.asdf.utilities.INetserviceSimulator)
	 */
	@Override
	public void handle( INetserviceSimulator simulator)
	{
		dlg.dispose( );
	}

}
